package com.waimai.app.qa.page;

import java.util.HashMap;
import java.util.List;

import org.openqa.selenium.Point;
import org.openqa.selenium.WebElement;

import com.waimai.app.qa.common.ShopmenuCommon;
import com.waimai.app.qa.data.Item;
import com.waimai.app.qa.data.PageObject;
import com.waimai.app.qa.util.Logger;
import com.waimai.app.qa.webdriver.AppDriver;

public class ShopMemuPage implements PageObject{
	/**
	    *@type id
	    *@testData 
	    *@locatorValue more_icon
	*/
		public Item more_icon;
	
	/**
	    *@type id
	    *@testData 
	    *@locatorValue unfavor_icon
	*/
		public Item unfavor_icon;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue favor_icon
	*/
		public Item favor_icon;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue search_icon
	*/
		public Item search_icon;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shopIn_Search_text
	*/
		public Item shopIn_Search_text;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue search_result
	*/
		public Item search_result;	
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue search_icon
	*/
		public Item searchbtn_icon;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue no_search_result
	*/
	public Item no_search_result;
	
	/**
	    *@type id
	    *@testData 
	    *@locatorValue search_back
	*/
		public Item search_back;	
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue pindan_icon
	*/
		public Item pindan_icon;	
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue cancel_pindan
	*/
		public Item cancel_pindan;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue dialog_cancel_pindan
	*/
		public Item dialog_cancel_pindan;	
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue dialog_continue_pindan
	*/
		public Item dialog_continue_pindan;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue add_googs_btn
	*/
		public Item add_googs_btn;	
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue continue_pindan_tip
	*/
		public Item continue_pindan_tip;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue diancai_tab_name
	*/
		public Item diancai_tab_name;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shopmemu_detail_page_back
	*/
		public Item shopmemu_detail_page_back;

	/**
	    *@type id
	    *@testData 
	    *@locatorValue search_result_item_shopname
	*/
		public Item search_result_item_shopname;

	/**
	    *@type id
	    *@testData 
	    *@locatorValue shopmemu_detai_page_title
	*/
		public Item shopmemu_detai_page_title;
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shop_youhui_info_text
	*/
		public Item shop_youhui_info_text;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shop_youhui_mianban_shouqi
	*/
		public Item shop_youhui_mianban_shouqi;
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shoplist_add_shopcar
	*/
		public Item shoplist_add_shopcar;
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shopcar_buytotal_textview
	*/
		public Item shopcar_buytotal_textview;	
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue addgoods_count
	*/
		public Item addgoods_count;		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shopcar_head_icon
	*/
		public Item shopcar_head_icon;	
		
	/**
	    *@type id
	    *@testData 
	    *@locatorValue shoppingcart_delete
	*/
		public Item shoppingcart_delete;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue dialog_confirm_clear_shopcar
		 */
		public Item dialog_confirm_clear_shopcar;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopcar_empty
		 */
		public Item shopcar_empty;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_shoplist_item
		 */
		public Item shopmenu_shoplist_item;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_list_click
		 */
		public Item shopmenu_list_click;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue add_to_shopcart_tv
		 */
		public Item add_to_shopcart_tv;
			
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_dishdatils_count
		 */
		public Item shopmenu_dishdatils_count;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_dish_item_name
		 */
		public Item shopmenu_dish_item_name;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue pindanpage_shopname
		 */
		public Item pindanpage_shopname;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue pindan_back
		 */
		public Item pindan_back;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_dishdatils_clickadd
		 */
		public Item shopmenu_dishdatils_clickadd;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_item_image
		 */
		public Item shopmenu_item_image;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue waimai_shopmenu_click
		 */
		public Item waimai_shopmenu_click;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopcar_click_add
		 */
		public Item shopcar_click_add;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue searchresult_clickadd
		 */
		public Item searchresult_clickadd;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopcar_goods_drag
		 */
		public Item shopcar_goods_drag;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue KA_category_list
		 */
		public Item KA_category_list;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue KA_category_icon
		 */
		public Item KA_category_icon;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue KA_shoplist_item_title
		 */
		public Item KA_shoplist_item_title;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shoplist_dish_minus
		 */
		public Item shoplist_dish_minus;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_shoplist_shopname
		 */
		public Item shopmenu_shoplist_shopname;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_support_standard
		 */
		public Item shopmenu_support_standard;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_group_attr_name
		 */
		public Item shopmenu_group_attr_name;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_item_support_taocan
		 */
		public Item shopmenu_item_support_taocan;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_taotancheckpage_title
		 */
		public Item shopmenu_taotancheckpage_title;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_taotancheckpage_buybtn
		 */
		public Item shopmenu_taotancheckpage_buybtn;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_item_mini_ordernum
		 */
		public Item shopmenu_item_mini_ordernum;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_attr_big_image
		 */
		public Item shopmenu_attr_big_image;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_title_container
		 */
		public Item shopdetail_title_container;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_discard_price
		 */
		public Item shopdetail_discard_price;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_change_price
		 */
		public Item shopdetail_change_price;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_share_actionbar
		 */
		public Item shopdetail_share_actionbar;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue wx_share_timeline_btn
		 */
		public Item wx_share_timeline_btn;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_back
		 */
		public Item shopmenu_back;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_comment_dish_score
		 */
		public Item shop_comment_dish_score;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_pager
		 */
		public Item shopmenu_pager;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue ecological_banner
		 */
		public Item ecological_banner;
		
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue ecological_chain_activity_scroll_container
		 */
		public Item ecological_chain_activity_scroll_container;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue ecological_activity_text
		 */
		public Item ecological_activity_text;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue ecological_url_title
		 */
		public Item ecological_url_title;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue ecological_url_back
		 */
		public Item ecological_url_back;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue ecological_shoplist_item_title
		 */
		public Item ecological_shoplist_item_title;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue ecological_recomment_container
		 */
		public Item ecological_recomment_container;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue second_classfy_back
		 */
		public Item second_classfy_back;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_bottom_layout
		 */
		public Item shopdetail_bottom_layout;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue canyin_shoplist_filter_item_title
		 */
		public Item canyin_shoplist_filter_item_title;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_attr_sell_less_tv
		 */
		public Item shopmenu_attr_sell_less_tv;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue seach_result_list_sug_texthint
		 */
		public Item seach_result_list_sug_texthint;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue share
		 */
		public Item share;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue baidu_deliver_icon
		 */
		public Item baidu_deliver_icon;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_name
		 */
		public Item shop_name;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue activity_btn
		 */
		public Item activity_btn;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_tab_name
		 */
		public Item shopmenu_tab_name;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue comment_noempty_checkbox
		 */
		public Item comment_noempty_checkbox;

		/**
		 *@type id
		 *@testData 
		 *@locatorValue comment_all_tag
		 */
		public Item comment_all_tag;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue comment_googcomment_tag
		 */
		public Item comment_googcomment_tag;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue comment_midcomment_tag
		 */
		public Item comment_midcomment_tag;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue comment_nogoodcomment_tag
		 */
		public Item comment_nogoodcomment_tag;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue waimai_shopdetail_image1
		 */
		public Item waimai_shopdetail_image1;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue activity_big_image_close
		 */
		public Item activity_big_image_close;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue waimai_shopdetail_tel_textview
		 */
		public Item waimai_shopdetail_tel_textview;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_attr_dish_desc
		 */
		public Item shopmenu_attr_dish_desc;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_disk_info_tv
		 */
		public Item shopmenu_disk_info_tv;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue dish_bad_num
		 */
		public Item dish_bad_num;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue dish_good_num
		 */
		public Item dish_good_num;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_attr_actionbar_left_back_top
		 */
		public Item shopmenu_attr_actionbar_left_back_top;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_comment_tag_container
		 */
		public Item shop_comment_tag_container;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue foolishComment
		 */
		public Item foolishComment;
		
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue middleComment
		 */
		public Item middleComment;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue goodComment
		 */
		public Item goodComment;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue iv_movie_big_poster
		 */
		public Item iv_movie_big_poster;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_rank_sale_textview
		 */
		public Item shopdetail_rank_sale_textview;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_time_textview
		 */
		public Item shopdetail_time_textview;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_local_textview
		 */
		public Item shopdetail_local_textview;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopdetail_logistics_message
		 */
		public Item shopdetail_logistics_message;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue complain_btn
		 */
		public Item complain_btn;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_complain_service
		 */
		public Item shop_complain_service;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_complain_business
		 */
		public Item shop_complain_business;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue count
		 */
		public Item count;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_info
		 */
		public Item shop_info;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue notice
		 */
		public Item notice;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_comment_deliver_score
		 */
		public Item shop_comment_deliver_score;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_comment_num
		 */
		public Item shop_comment_num;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shop_detail_welfare_title
		 */
		public Item shop_detail_welfare_title;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue welfare_item_text
		 */
		public Item welfare_item_text;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_footbar_takeout_cost_text
		 */
		public Item shopmenu_footbar_takeout_cost_text;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_box_monneytext
		 */
		public Item shopmenu_box_monneytext;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_box_monneytext_rmb
		 */
		public Item shopmenu_box_monneytext_rmb;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_footbar_subbmit
		 */
		public Item shopmenu_footbar_subbmit;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_dish_item_total_price
		 */
		public Item shopmenu_dish_item_total_price;
		
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_footbar_base_order_text
		 */
		public Item shopmenu_footbar_base_order_text;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_dish_item_attr
		 */
		public Item shopmenu_dish_item_attr;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shoplist_filter_item_title
		 */
		public Item shoplist_filter_item_title;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shangjiatab
		 */
		public Item shangjiatab;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue search_box_container
		 */
		public Item search_box_container;
		/**
		 *@type id
		 *@testData 
		 *@locatorValue shopmenu_attr_count_miniorder
		 */
		public Item shopmenu_attr_count_miniorder;
		
		
			
	@Override
	public void init(HashMap<String, Object> items) {
		this.more_icon = (Item) items.get("more_icon");
		this.unfavor_icon = (Item) items.get("unfavor_icon");
		this.favor_icon = (Item) items.get("favor_icon");
		this.search_icon = (Item) items.get("search_icon");
		this.shopIn_Search_text = (Item) items.get("shopIn_Search_text");
		this.search_result = (Item) items.get("search_result");
		this.searchbtn_icon = (Item) items.get("searchbtn_icon");
		this.no_search_result = (Item) items.get("no_search_result");
		this.search_back = (Item) items.get("search_back");
		this.pindan_icon = (Item) items.get("pindan_icon");
		this.cancel_pindan = (Item) items.get("cancel_pindan");
		
		this.dialog_cancel_pindan = (Item) items.get("dialog_cancel_pindan");
		this.dialog_continue_pindan = (Item) items.get("dialog_continue_pindan");
		this.add_googs_btn = (Item) items.get("add_googs_btn");
		this.continue_pindan_tip = (Item) items.get("continue_pindan_tip");
		this.diancai_tab_name = (Item) items.get("diancai_tab_name");
		this.shopmemu_detail_page_back = (Item) items.get("shopmemu_detail_page_back");
		this.search_result_item_shopname = (Item) items.get("search_result_item_shopname");
		this.shop_youhui_info_text = (Item) items.get("shop_youhui_info_text");
		this.shop_youhui_mianban_shouqi = (Item) items.get("shop_youhui_mianban_shouqi");
		this.shoplist_add_shopcar = (Item) items.get("shoplist_add_shopcar");
		this.shopcar_buytotal_textview = (Item) items.get("shopcar_buytotal_textview");
		this.addgoods_count = (Item) items.get("addgoods_count");
		this.shopcar_head_icon = (Item) items.get("shopcar_head_icon");
		this.shoppingcart_delete = (Item) items.get("shoppingcart_delete");
		this.dialog_confirm_clear_shopcar = (Item) items.get("dialog_confirm_clear_shopcar");
		this.shopcar_empty = (Item) items.get("shopcar_empty");
		this.shopmenu_shoplist_item = (Item) items.get("shopmenu_shoplist_item");
//		this.shopmenu_list_click = (Item) items.get("shopmenu_list_click");
		this.add_to_shopcart_tv = (Item) items.get("add_to_shopcart_tv");
		this.shopmenu_dishdatils_count = (Item) items.get("shopmenu_dishdatils_count");
		this.shopmenu_dish_item_name = (Item) items.get("shopmenu_dish_item_name");
		this.shopmemu_detai_page_title = (Item) items.get("shopmemu_detai_page_title");
		this.pindanpage_shopname = (Item) items.get("pindanpage_shopname");
		this.pindan_back = (Item) items.get("pindan_back");
		this.shopmenu_dishdatils_clickadd = (Item) items.get("shopmenu_dishdatils_clickadd");
		this.shopmenu_item_image = (Item) items.get("shopmenu_item_image");
		this.waimai_shopmenu_click = (Item) items.get("waimai_shopmenu_click");
		this.shopcar_click_add = (Item) items.get("shopcar_click_add");
		this.searchresult_clickadd = (Item) items.get("searchresult_clickadd");
		this.shopcar_goods_drag = (Item) items.get("shopcar_goods_drag");
		this.KA_category_list = (Item) items.get("KA_category_list");
		this.KA_category_icon = (Item) items.get("KA_category_icon");
		this.KA_shoplist_item_title = (Item) items.get("KA_shoplist_item_title");
		this.shoplist_dish_minus = (Item) items.get("shoplist_dish_minus");
		this.shopmenu_shoplist_shopname = (Item) items.get("shopmenu_shoplist_shopname");
		this.shopmenu_support_standard = (Item) items.get("shopmenu_support_standard");
		this.shopmenu_group_attr_name = (Item) items.get("shopmenu_group_attr_name");
		this.shopmenu_item_support_taocan = (Item) items.get("shopmenu_item_support_taocan");
		this.shopmenu_taotancheckpage_title = (Item) items.get("shopmenu_taotancheckpage_title");
		this.shopmenu_taotancheckpage_buybtn = (Item) items.get("shopmenu_taotancheckpage_buybtn");
		this.shopmenu_item_mini_ordernum = (Item) items.get("shopmenu_item_mini_ordernum");
		this.shopmenu_attr_big_image = (Item) items.get("shopmenu_attr_big_image");
		this.shopdetail_title_container = (Item) items.get("shopdetail_title_container");
		this.shopdetail_discard_price = (Item) items.get("shopdetail_discard_price");
		this.shopdetail_change_price = (Item) items.get("shopdetail_change_price");
		this.shopdetail_share_actionbar = (Item) items.get("shopdetail_share_actionbar");
		this.wx_share_timeline_btn = (Item) items.get("wx_share_timeline_btn");
		this.shopmenu_back = (Item) items.get("shopmenu_back");
		this.shop_comment_dish_score = (Item) items.get("shop_comment_dish_score");
		this.shopmenu_pager = (Item) items.get("shopmenu_pager");
		this.ecological_banner = (Item) items.get("ecological_banner");
		this.ecological_chain_activity_scroll_container = (Item) items.get("ecological_chain_activity_scroll_container");
		this.ecological_activity_text = (Item) items.get("ecological_activity_text");
		this.ecological_url_title = (Item) items.get("ecological_url_title");
		this.ecological_url_back = (Item) items.get("ecological_url_back");
		this.ecological_shoplist_item_title = (Item) items.get("ecological_shoplist_item_title");
		this.ecological_recomment_container = (Item) items.get("ecological_recomment_container");
		this.second_classfy_back = (Item) items.get("second_classfy_back");
		this.shopdetail_bottom_layout = (Item) items.get("shopdetail_bottom_layout");
		this.canyin_shoplist_filter_item_title = (Item) items.get("canyin_shoplist_filter_item_title");
		this.shopmenu_attr_sell_less_tv = (Item) items.get("shopmenu_attr_sell_less_tv");
		this.seach_result_list_sug_texthint = (Item) items.get("seach_result_list_sug_texthint");
		this.share = (Item) items.get("share");
		this.baidu_deliver_icon = (Item) items.get("baidu_deliver_icon");
		this.shop_name = (Item) items.get("shop_name");
		this.activity_btn = (Item) items.get("activity_btn");
		this.shopmenu_tab_name = (Item) items.get("shopmenu_tab_name");
		this.comment_noempty_checkbox = (Item) items.get("comment_noempty_checkbox");
		this.comment_all_tag = (Item) items.get("comment_all_tag");
		this.comment_googcomment_tag = (Item) items.get("comment_googcomment_tag");
		this.comment_midcomment_tag = (Item) items.get("comment_midcomment_tag");
		this.comment_nogoodcomment_tag = (Item) items.get("comment_nogoodcomment_tag");
		this.waimai_shopdetail_image1 = (Item) items.get("waimai_shopdetail_image1");
		this.activity_big_image_close = (Item) items.get("activity_big_image_close");
		this.waimai_shopdetail_tel_textview = (Item) items.get("waimai_shopdetail_tel_textview");
		this.shopmenu_attr_dish_desc = (Item) items.get("shopmenu_attr_dish_desc");
		this.shopmenu_disk_info_tv = (Item) items.get("shopmenu_disk_info_tv");
		this.dish_bad_num = (Item) items.get("dish_bad_num");
		this.dish_good_num = (Item) items.get("dish_good_num");
		this.shopmenu_attr_actionbar_left_back_top = (Item) items.get("shopmenu_attr_actionbar_left_back_top");
		this.shop_comment_tag_container = (Item) items.get("shop_comment_tag_container");
		this.goodComment = (Item) items.get("goodComment");
		this.middleComment = (Item) items.get("middleComment");
		this.foolishComment = (Item) items.get("foolishComment");
		this.iv_movie_big_poster = (Item) items.get("iv_movie_big_poster");
		this.shopdetail_rank_sale_textview = (Item) items.get("shopdetail_rank_sale_textview");
		this.shopdetail_time_textview = (Item) items.get("shopdetail_time_textview");
		this.shopdetail_local_textview = (Item) items.get("shopdetail_local_textview");
		this.shopdetail_logistics_message = (Item) items.get("shopdetail_logistics_message");
		this.complain_btn = (Item) items.get("complain_btn");
		this.shop_complain_service = (Item) items.get("shop_complain_service");
		this.shop_complain_business = (Item) items.get("shop_complain_business");
		this.count = (Item) items.get("count");
		this.shop_info = (Item) items.get("shop_info");
		this.notice = (Item) items.get("notice");
		this.shop_comment_deliver_score = (Item) items.get("shop_comment_deliver_score");
		this.shop_comment_num = (Item) items.get("shop_comment_num");
		this.shop_detail_welfare_title = (Item) items.get("shop_detail_welfare_title");
		this.welfare_item_text = (Item) items.get("welfare_item_text");
		this.shopmenu_footbar_takeout_cost_text = (Item) items.get("shopmenu_footbar_takeout_cost_text");
		this.shopmenu_box_monneytext = (Item) items.get("shopmenu_box_monneytext");
		this.shopmenu_box_monneytext_rmb = (Item) items.get("shopmenu_box_monneytext_rmb");
		this.shopmenu_footbar_subbmit = (Item) items.get("shopmenu_footbar_subbmit");
		this.shopmenu_dish_item_total_price = (Item) items.get("shopmenu_dish_item_total_price");
		this.shopmenu_footbar_base_order_text = (Item) items.get("shopmenu_footbar_base_order_text");
		this.shopmenu_dish_item_attr = (Item) items.get("shopmenu_dish_item_attr");
		this.shoplist_filter_item_title = (Item) items.get("shoplist_filter_item_title");
		this.shangjiatab = (Item) items.get("shangjiatab");
		this.search_box_container = (Item) items.get("search_box_container");
		this.shopmenu_attr_count_miniorder = (Item) items.get("shopmenu_attr_count_miniorder");
		
	}

	/**
	 * 
		 * @Description：获取二级分类页的商户list
		 * @author：wangwenhui
		 * @time：2017年7月13日上午10:34:05
	 */
	public List<WebElement> getSecondaryClassfyPageShopList() {
		  List<WebElement> shopList = SecondaryClassfyPage.shop_list_icon.getWebElementList();
		    if(shopList.size() > 0) {
		    	Logger.log("二级分类页的商户list");
		    }
		    return shopList;
	}
	
	/**
	 * 
		 * @Description：点击店内搜索，在搜索输入框输入关键词
		 * @time：2017年7月12日下午4:14:46
	 */
	public void searchSendKeys(String searchKeyWord) {
		this.search_icon.click();
		Logger.log("点击店内搜索");
		this.shopIn_Search_text.getWebElement().sendKeys(searchKeyWord);
		Logger.log("店内搜索文本框输入关键词"+searchKeyWord);
	
	}
	
	/**
	 * 
		 * @Description：获取搜索结果页的商品列表
		 * @author：wangwenhui
		 * @time：2017年7月13日上午11:01:22
	 */
	
	public List<WebElement> getSearchResult() { 
		List<WebElement> resultList = this.search_result.getWebElementList();
		if(resultList.size() > 0) {
			Logger.log("搜索页面有商品");
		}
		return resultList;
	}
	
	/**
	 * 
		 * @Description：获取拼单页已添加的商品
		 * @author：wangwenhui
		 * @time：2017年7月13日上午11:12:22
	 */
	public void getPindanPageGoodsList() {
		List<WebElement> pindanShopList = this.pindanpage_shopname.getWebElementList();
		if(pindanShopList.size()>0) {
			Logger.log("拼单页显示已添加商品");
		}
	}
	
	/**
	 * 
		 * @Description：判断商品list添加的商品数量是否和购物车中的商品数量一致
		 * @author：wangwenhui
		 * @time：2017年7月12日下午4:31:18
	 */
	public void addGoodsCountSameToShopCarCount() {
		try{
			String addgood_count = this.addgoods_count.getText();//获取添加的商品数量
			if(addgood_count.equals(getCurrentGoodsTypeNum())) {
				Logger.log("添加的商品数量和单店购物车的商品数量一致");
			}
		}catch (Exception e) {
			AppDriver.failCase("添加的商品数量和购物车的商品数量不一致");
			e.printStackTrace();
		}
	}
	
	/**
	 * 
		 * @Description：获得当前单店购物车商品总数量
		 * @author：wangwenhui
		 * @time：2017年7月10日下午10:45:16
	 */
	
	public String getCurrentGoodsTypeNum() {
		String num = this.shopcar_buytotal_textview.getText();
		Logger.log("购物车的商品数量为："+num);
		return num;
	}
	
	
	/**
	 * 
		 * @Description：获取商品详情页的商品数量
		 * @author：wangwenhui
		 * @time：2017年7月11日下午2:14:55
	 */
	public String getShopmenuDetailsCount() {
		String detailsCount = this.shopmenu_dishdatils_count.getText();
		Logger.log("商品详情页中商品的数量为："+detailsCount);
		return detailsCount;
	}


	/**
	 * 
		 * @Description：获取单店购物车的某一商品添加商品数量
		 * @author：wangwenhui
		 * @time：2017年7月12日下午2:20:35
	 */
	public String getShopcarGoodscounts() {
		String shopCarNums = this.addgoods_count.getText();
		Logger.log("单店购物车的商品数量为："+shopCarNums);
		return shopCarNums;
		
	}
	

	/**
	 * 
		 * @Description：获取KA模板的‘测试’分类后，返回分类的元素
		 * @author：wangwenhui
		 * @time：2017年7月14日下午3:11:02
	 */
	public WebElement getShoplistItemTitle(String shopListName) {
		List<WebElement> shopList = this.KA_shoplist_item_title.getWebElementList();
		if(shopList.size() > 0) {
			for(int i=0;i<shopList.size();i++) {
				if(shopList.get(i).getText().equals(shopListName)){
					return shopList.get(i);
				}
			}
		}
		return null;
	}
		/**
		 * 
		 * @Description：获取shoplist的菜品名称
		 * @author：wangwenhui
		 * @time：2017年7月14日下午3:11:02
		 */
		public WebElement getShoplistGoodsTitle(String shopListName) {
			List<WebElement> shopList = this.shopmenu_shoplist_shopname.getWebElementList();
			if(shopList.size() > 0) {
				for(int i=0;i<shopList.size();i++) {
					if(shopList.get(i).getText().equals(shopListName)){
						return shopList.get(i);
					}
				}
			}
			return null;
	
	}
	/**
	 * 
		 * @Description：判断是否进入详情页
		 * @author：wangwenhui
		 * @time：2017年7月18日下午3:07:39
	 */
	public void isEnterShopDetail() {
		if(this.shopmemu_detai_page_title.getText()!=""||this.shopmemu_detai_page_title.getText()!=null) {
			Logger.log("进入商品详情页");
		}
	}
	
	/**
	 * 
		 * @Description：获取商品详情页显示的规格和属性
		 * @author：wangwenhui
		 * @time：2017年7月18日下午4:08:41
	 */
	public void getAttibuteName() {
		List<WebElement> attibuteList = this.shopmenu_group_attr_name.getWebElementList();
		if(attibuteList.size() > 0) {
			for(int i=0;i<attibuteList.size();i++) {
				Logger.log("商品详情页显示的属性有："+attibuteList.get(i).getText());
			}
		}
	}
	
	/**
	 * 
		 * @Description：在商品详情页，左右滑动商品
		 * @author：wangwenhui
		 * @time：2017年7月20日下午5:08:07
	 */
	public void swipeShopDetailPage() {
		for (int i = 0; i < 6; i++) {
			AppDriver.shopDetailPageSwipeToLeft(8000);
		}

		for (int i = 0; i < 6; i++) {
			AppDriver.shopDetailPageSwipeToRight(8000);
		}
	}
	
	/**
	 * 
		 * @Description：shopmenu页面向上滑动N次
		 * @author：wangwenhui
		 * @time：2017年7月24日下午5:06:55
	 */
	public void swipToUpTwice(int count) {
		for(int i=1;i<=count;i++) {
			AppDriver.swipeToUp(2000);
		}
	}
	/**
	 * 
	 * @Description：shopmenu页面向上滑动N次
	 * @author：wangwenhui
	 * @time：2017年7月24日下午5:06:55
	 */
	public void swipToDown(int count) {
		for(int i=1;i<=count;i++) {
			AppDriver.swipeToDown(2000);
		}
	}
	
	/**
	 * 
		 * @Description：是否进入shopmenu页面
		 * @author：wangwenhui
		 * @time：2017年7月24日下午5:07:21
	 */
	public void isShopMenuPage() {
		try{
			if(this.diancai_tab_name.getText().equals(ShopmenuCommon.DIANCAI)){
				Logger.log("当前页面是shopmenu页");
				AppDriver.successCase();
			}
		}catch (Exception e) {
			Logger.log("没有返回shopmenu");
			e.printStackTrace();
		}
	}

	/**
	 * 
		 * @Description：获取生态链模板的商品活动分类，返回分类的元素
		 * @author：wangwenhui
		 * @time：2017年7月14日下午3:11:02
	 */
	public WebElement getEcologicalItemTitle(String ecologicaltGoodName) {
		List<WebElement> shopList = this.ecological_activity_text.getWebElementList();
		if(shopList.size() > 0) {
			for(int i=0;i<shopList.size();i++) {
				if(shopList.get(i).getText().equals(ecologicaltGoodName)){
					return shopList.get(i);
				}
			}
		}
		return null;
	}
	
	/**
	 * 
	 * @Description：获取生态链模板的商品活动分类，返回分类的元素
	 * @author：wangwenhui
	 * @time：2017年7月14日下午3:11:02
	 */
	public WebElement getCanyinItemTitle(String classfyName) {
		List<WebElement> shopList = this.canyin_shoplist_filter_item_title.getWebElementList();
		if(shopList.size() > 0) {
			for(int i=0;i<shopList.size();i++) {
				if(shopList.get(i).getText().equals(classfyName)){
					return shopList.get(i);
				}
			}
		}
		return null;
	}
	
	/**
	 * 
		 * @Description：当前页时shopmenu页
		 * @author：wangwenhui
		 * @time：2017年7月26日下午6:55:19
	 */
	public void isShopMenupage() {
		if(this.diancai_tab_name.getText().equals(ShopmenuCommon.DIANCAI)){
			Logger.log("进入shopmenu页面");
		}
	}
	
	
	/**
	 * 
		 * @Description：获取KA模板的‘测试’分类后，返回分类的元素
		 * @author：wangwenhui
		 * @time：2017年7月14日下午3:11:02
	 */
	public WebElement getEcologicalShoplistItemTitle(String shopListName) {
		List<WebElement> shopList = this.ecological_shoplist_item_title.getWebElementList();
		if(shopList.size() > 0) {
			for(int i=0;i<shopList.size();i++) {
				if(shopList.get(i).getText().equals(shopListName)){
					return shopList.get(i);
				}
			}
		}
		return null;
	
	}
	/**
	 * 
	 * @Description：获取商户点菜页的tab元素并返回
	 * @author：wangwenhui
	 * @time：2017年7月14日下午3:11:02
	 */
	public WebElement getShopMenuTab(String shopListName) {
		List<WebElement> tabList = this.diancai_tab_name.getWebElementList();
		if(tabList.size() > 0) {
			for(int i=0;i<tabList.size();i++) {
				if(tabList.get(i).getText().equals(shopListName)){
					return tabList.get(i);
				}
			}
		}
		return null;
	}
	/**
	 * 
		 * @Description：获取生态链模板今日主推的元素list
		 * @author：wangwenhui
		 * @time：2017年7月26日下午8:46:34
	 */
	public List<WebElement> getEcologicalTodayMainPushList() {
		List<WebElement> shopList = this.shopmenu_shoplist_item.getWebElementList();
		if(shopList.size() > 0) {
			return shopList;
		}
		return null;
	}
	/**
	 * 
		 * @Description：获取滑动区域的x、y、middle的坐标
		 * @author：wangwenhui
		 * @time：2017年7月26日下午7:23:17
	 */
		public int[] getElementLoc(WebElement element) {
	        int loc[] = new int[3];
	        Point home_navi_point = element.getLocation();
	        loc[0] = home_navi_point.getX()+ (int) (4.0 / 5 * element.getSize().width);//startX
	        loc[1] = home_navi_point.getX()+ (int) (1.0 / 5 * element.getSize().width);//middleY
	        loc[2] = home_navi_point.getY()+ (int) (1.0 / 2 * element.getSize().height);//middleY
	        return loc;
	    }
		
		/**
		 * 
			 * @Description：进入商品详情页，如果详情页出现找不到元素的错误，则关闭详情页，重跑该case
			 * @author：wangwenhui
			 * @time：2017年8月1日上午10:54:24
		 */
		public void enterShopdetailUntilCloseShopDetail() {
			try{
				this.isEnterShopDetail();
			}catch (Exception e) {
				this.shopmemu_detail_page_back.click();
				Logger.log("关闭详情页");
				e.printStackTrace();
			}
		}
		
		/**
		 * 
			 * @Description：进入商家tab
			 * @author：wangwenhui
			 * @time：2017年9月19日上午10:11:50
		 */
		public void enterShangjiaTab() {
			this.getShopMenuTab(ShopmenuCommon.SHOPMENU_SHANGJIA_TAB).click();
			Logger.log("点击商家tab");
		}
		
		
		/**
		 * 
			 * @Description：获取商家tab的商家优惠信息
			 * @author：wangwenhui
			 * @time：2017年9月19日上午10:22:04
		 */
		public void getShangjiaYouhuiAndServerInfo() {
			List<WebElement> listInfo = this.welfare_item_text.getWebElementList();
			if(listInfo.size() > 0) {
				for(int i=0;i<listInfo.size();i++) {
					Logger.log(listInfo.get(i).getText());
				}
			}
		}
		
		

		/**
		 * 
			 * @Description：获取单店购物车的起送价
			 * @author：wangwenhui
			 * @time：2017年9月20日下午4:27:40
		 */
		public int getQisongjia() {
			String price = this.shop_info.getText().substring(5, 6);//取起送价格
			System.out.println(price+"--------------------------------------------------");
			return Integer.parseInt(price);
			
		}
		
		/**
		 * 
			 * @Description：获取单店购物车的总价格  共￥29.7
			 * @author：wangwenhui
			 * @time：2017年9月20日下午4:27:40
		 */
		public int getTotalPrice() {
			String totalPrice = this.shopcar_empty.getText().substring(2);
			System.out.println(totalPrice+"*****************************************");
			return Integer.parseInt(totalPrice);
		}
		
		/**
		 * 
			 * @Description：判断购物车的菜品是否达到配送价
			 * @author：wangwenhui
			 * @time：2017年9月20日下午4:47:58
		 */
		public void isRearchDistubution() {
			if(getTotalPrice() >= getQisongjia()) {
				Logger.log("单店购物车的商品总额大于配送价");
			}
		}
}
